package io_exercise;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class ISRDemo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis2=new FileInputStream("osw2.txt");
        InputStreamReader isr2=new InputStreamReader(fis2, StandardCharsets.UTF_8);
        int d2;
        while ((d2=isr2.read())!=-1){
            System.out.print((char)d2);
        }
        isr2.close();

    }
}
